﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SaintWinControl
{
    public partial class ucLabel : ControlMatrix //UserControl
    {

        [Category("SaintWinControl")]
        [Description("取得和設定顯示文字")]
        public string Caption
        {
            set
            {
                label1.Text = value;
                this.Width = label1.Width;
                this.Height = label1.Height;
            }
            get
            {
                return label1.Text;
            }
        }
        public ucLabel()
        {
            InitializeComponent();
        }

        //public override Font Font
        //{
        //    get
        //    {
        //        return base.Font;
        //    }
        //    set
        //    {
        //        base.Font = value;
        //        label1.Font = value;
        //    }
        //}
    }
}
